package com.cxcy.swustlearner.mapper;

import com.cxcy.swustlearner.pojo.PageBean;
import com.cxcy.swustlearner.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;
@Mapper
public interface UserMapper {
    @Select("select * from users")
    List<User> GetAllUsers(User user);
    @Select("select * from users where username=#{username}")
    User GetUserByusername(String username);
    @Select("select * from users where student_id=#{id}")
    List<User> getUsersById(int id);
    void updateUser(User user);
    List<String> GetuserByinformatin(User user);
}